//
//  Person.m
//  摇奖机
//
//  Created by 伍银荣 on 2021/8/30.
//  Copyright © 2021 com.WYR. All rights reserved.
//

#import "Person.h"

@implementation Person

//-(id)copyWithZone:(NSZone *)zone {
//    Person *p = [[[self class] alloc]init];
//    id obj = [NSMutableArray array];
//    NSLog(@"count = %lu",[(NSMutableArray *)obj retainCount]);
//    [obj retain];
//    NSLog(@"count = %lu",[(NSMutableArray *)obj retainCount]);
//    [obj release];
//    NSLog(@"count = %lu",[(NSMutableArray *)obj retainCount]);
//    return p;
//}
//
////alloc的源码
//+ (instancetype)alloc {
//    return [self allocWithZone:NSDefaultMallocZone()];
//}
//
////allocWithZone:方法的源码
//+ (instancetype)allocWithZone:(struct _NSZone *)zone {
//    return NSAllocateObject(self, 0, zone);
//}

@end
